<?php


namespace app\cms\authCallBack;


use app\cms\community\lib\saas\saasAccount;
use iflow\Response;

class saas
{

    public function validIsSaasAccountValidServer(): Response|bool
    {
        $isServer = request() -> getHeader('host') ===
            app(saasAccount::class) -> getEnvConfig()['application']['domain'];
        if ($isServer) return true;
        return message() -> unauthorized_error('暂无该页面访问权限');
    }

}